
import 'package:flutter/services.dart';
import 'package:wallpaper_client_plugin/model/CateItem.dart';

import 'wallpaper_client_plugin_platform_interface.dart';

class WallpaperClientPlugin {
  Future<String?> getPlatformVersion() {
    return WallpaperClientPluginPlatform.instance.getPlatformVersion();
  }
  Future<bool?> sensorsAvailable() {
    return WallpaperClientPluginPlatform.instance.sensorsAvailable();
  }

  void downloadWallpaper(CatelogItem catelogItem) {
    WallpaperClientPluginPlatform.instance.downloadWallpaper(catelogItem.toJson());
  }

  void setWallpaper(CatelogItem catelogItem) {
    WallpaperClientPluginPlatform.instance.setWallpaper(catelogItem.toJson());
  }
}
